﻿@using News.Models.Database;
@using News.Models;
@{
    var cs = ViewData["Index"] as List<News>;
}

<ul id="main_ul">
    @{
        foreach(var item in cs)
        {
        <li><a href="detail.html">
                    <img src="@item.NewsPhoto">
            <p>@item.NewsTitle</p>
            <p>@item.NewsContent</p>
            <p>发布时间:@item.NewsReleaseTime</p>
            <p>文章来源:@item.NewsArticleSource</p>
            </a>
        </li>
        }
    }
</ul>

